<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Users\Controller\Users' => 'Users\Controller\UsersController',
        ),
    ),
    // The following section is new and should be added to your file
    'router' => array(
        'routes' => array(
            'users' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/users[/:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'index',
                    ),
                ),
            ),
			//index htmls
			'virtual-numbers' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/virtual-numbers[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'virtual-numbers',
                    ),
                ),
            ),
			
			//sip_trunking
			
				'sip-trunking' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/sip-trunking[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'sip-trunking',
                    ),
                ),
            ),
			
			//hosted_pbx
			'hosted-pbx' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/hosted-pbx[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'hosted-pbx',
                    ),
                ),
            ),
			
			// voip-plans
			'voip-plans' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/voip-plans[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'voip-plans',
                    ),
                ),
            ),
			'recharge' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/recharge[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'recharge',
                    ),
                ),
            ),
			'contact-form' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/contact-form[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'contact-form',
                    ),
                ),
            ),
			'login' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/login[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'login',
                    ),
                ),
            ),
			
			'register' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/register[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'register',
                    ),
                ),
            ),
			'success' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/success[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'success',
                    ),
                ),
            ),
			'dashboard' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/dashboard[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'dashboard',
                    ),
                ),
            ),
			'account' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/account[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'account',
                    ),
                ),
            ),
			'call-details' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/call-details[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[a-zA-Z][a-zA-Z0-9_-]',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'call-details',
                    ),
                ),
            ),
			'settings' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/settings[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'settings',
                    ),
                ),
            ),
			'payments' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/payments[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'payments',
                    ),
                ),
            ),
			'phonebook' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/phonebook[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'phonebook',
                    ),
                ),
            ),
			'phonebookadd-user' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/phonebookadd-user[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'phonebookadd-user',
                    ),
                ),
            ),
			'paypakage' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/paypakage[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'paypakage',
                    ),
                ),
            ),
			'payments-2' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/payments-2[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'payments-2',
                    ),
                ),
            ),
			'payment-history' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/payment-history[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'payment-history',
                    ),
                ),
            ),
			'usage-graph' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/usage-graph[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'usage-graph',
                    ),
                ),
            ),
			'packages-1' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/packages-1[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'packages-1',
                    ),
                ),
            ),
			'packages-history' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/packages-history[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'packages-history',
                    ),
                ),
            ),
			'call-rates' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/call-rates[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'call-rates',
                    ),
                ),
            ),
			'our-apps' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/our-apps[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'our-apps',
                    ),
                ),
            ),
			'deals' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/deals[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'deals',
                    ),
                ),
            ),
			'forget-password' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/forget-password[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'forget-password',
                    ),
                ),
            ),
			'cforget-password' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/cforget-password[/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Users\Controller\Users',
                        'action'     => 'cforget-password',
                    ),
                ),
            ),
			/* users          end                      */
		 ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'users' => __DIR__ . '/../view',
        ),
    ),
);